﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace TV_Organizer
{
    public class TVShowRegex : Regex
    {
        public TVShowRegex(TVShow tvShow)
            : base(TVShowRegex.GetPattern(tvShow), RegexOptions.IgnoreCase)
        {
            this.TVShow = tvShow;
        }

        public TVShow TVShow { get; private set; }

        private static string GetPattern(TVShow tvShow)
        {
            var l_result = tvShow.Name.ReplaceChars(FileScanner.Constants.CleanupCharacters, FileScanner.Constants.CleanupCharactersReplacement);
            return string.Format(" {0} ", l_result);
        }
    }
}
